package com.itheima.Jiuye09;

import java.util.HashSet;

public class TestStudent1 {
    public static void main(String[] args) {
        HashSet<Student1> hs = new HashSet<>();
        Student1 stu = new Student1("wangwu",25);
        Student1 stu1 = new Student1("wangwu",25);
        Student1 stu2 = new Student1("lishi",24);
        hs.add(stu);
        hs.add(stu1);
        hs.add(stu2);
        System.out.println(hs);
    }
}
